from communication import *

class Walker:
  def __init__(self, ttl, fname, receiverpeer, senderpeer, requester):
    self._rec_peer = receiverpeer
    self._sender_peer = senderpeer
    self._requester = requester
    self._fname = fname
    self._ttl = ttl
    
  def run(self):
    name, neighbors, ip, port = self._rec_peer
    fromname, cmd, data = comm(ip, port, self._sender_peer[0], FIND, (self._fname, self._ttl, self._requester))